package model

type CartItem struct {
	Id     int
	Books  *Book
	Count  int
	Amout  float64
	CartId string
}

func (this *CartItem) GetAmout() (amout float64) {

	return float64(this.Count) * this.Books.Price
}
